/*
 * Copyright (c) 2016 UBG - 版权所有
 * 
 * This software is the confidential and proprietary information of
 * UBG. You shall not disclose such confidential information 
 * and shall use it only in accordance with the terms of the license 
 * agreement you entered into with www.7qjf.com.
 */
package common.utils;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 *
 * 描述:
 *
 * @created 2016年12月6日 上午9:22:58
 * @since   v1.0.0
 */
public class LogUtil {

	public final static String APPENDER_COMMON = "ASYNC_COMMON";
	/**异常日志**/
	public final static String APPENDER_EXCEPTION = "EXCEPTION";
	/**用户日志**/
	public final static String APPENDER_USER = "USER";
	/**IO日志**/
	public final static String APPENDER_INTERFACE_IO = "INTERFACEIO";
	/**通讯日志**/
	public final static String APPENDER_ESB_COMM = "esbComm"; //ESB 通讯日志
	/**鑫资产文件同步日志**/
	public final static String APPEND_FILE = "fileCopy";
	/**征信接口日志,已经诉讼信息推送信息**/
	public final static String APPEND_CREDIT = "CREDIT";
	/**企业文书接口日志*/
	public final static String APPEND_CHARGE_TEXT_CREDIT = "CREDITCHARGE";
	/**取消监控接口日志**/
	public final static String CANCLE_MONITOR = "MONITOR";
	/**鑫资产预约,预警接口*/
	public final static String CRM_APPOINTMENT = "CRMInterfaceLog";
	/**http client日志 **/
	public final static String APPEND_HTTPCLIENT = "HTTPCLIENT";
	/**手机验证*/
	public final static String MOBILE_CHECK = "MOBILECHECK";
	/**个人信贷黑名单接口日志*/
	public final static String PERSON_CREDIT_BLACK_LIST = "personalCreditBlackListLog";
	/**个人信贷统计*/
	public final static String PERSON_CREDIT_STATISTICS = "personcreditStatistics";
	/**企业文书接口日志*/
	public final static String CORP_CREDIT_BRANCHES_QUERY = "CREDITBRANCHES";
	/**消息推送失败日志*/
	public final static String ERROR_FOR_MESSAGE_FAILED = "MESSAGE_FAILED";

	/**
	 * CRM接口调用日志记录
	 */
	public final static String CRM_INTERFACE_INFO = "CRMInterfaceLog";

	public final static String CRM_ESTATEASSESSMENT = "estateassessmentLog";

	private final static String APPEND_PROPERTIES = "properties";


	/**
	 * 获取httpclient日志对象<br><br>
	 * 详细配置请查看log4j.xml文件
	 * @return 通用日志对象
	 */
	public static Log getHttpClientLog() {
		Log log = LogFactory.getLog(APPEND_HTTPCLIENT);
		return log;
	}





	public static Log getPropertiesLog() {
		return LogFactory.getLog(APPEND_PROPERTIES);
	}

	/**
	 * 获取通用的日志对象<br><br>
	 * 详细配置请查看log4j.xml文件
	 * @return 通用日志对象
	 */
	public static Log getCommonLog() {
		Log log = LogFactory.getLog(APPENDER_COMMON);
		return log;
	}


}
